package com.bwie.controller;

import com.bwie.service.TbDictService;
import com.bwie.service.TbTypeService;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zhaijiaqi
 * @Date: 2025/7/22 21:01
 * @Description:
 **/
@RestController
@RequestMapping("/prod/dict")
public class DictController {

    @Autowired
    TbDictService tbDictService;

    /**
     * 字典表分页
     * @param pageInfoVo
     * @return
     */
    @PostMapping("/getDictPage")
    public R getDictPage(@RequestBody PageInfoVo pageInfoVo){
        return tbDictService.getDictPage(pageInfoVo);
    }
}
